package com.turing.post.organization.util;

import java.math.BigInteger;
import java.util.Date;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;
import com.turing.post.util.PCPSWebInput;

@Remote
@Local
public interface MerchantSecretPolicyBusiness {

	/**
	 * 计算持卡人商户交易是否需要密码
	 * 
	 * @param merchantNo
	 *            商户号
	 * @param mrchBranchNo
	 *            商户机构号
	 * @param tranDate
	 *            交易日期
	 * @param cardNo
	 *            卡号
	 * @param amount
	 *            发生额
	 * @return boolean
	 */
	public boolean isCardHolderNeedPwd(String merchantNo, String mrchBranchNo,
			Date tranDate, String cardNo, BigInteger amount);
	/**
	 * 新增策略 
	 */
	public void insertMerchantSecretPolicy(PCPSWebInput input,MerchantSecretPolicy merchantSecretPolicy)throws PCPSApplicationException;
	/**
	 * 修改策略 
	 */
	public void updateMerchantSecretPolicy(PCPSWebInput input,MerchantSecretPolicy merchantSecretPolicy)throws PCPSApplicationException;
	/**
	 * 删除策略 
	 */
	public void deleteMerchantSecretPolicy(PCPSWebInput input,BigInteger feePolicyId)throws PCPSApplicationException;
}
